<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    'use strict'
    var obj = {
        name:"suzihao",
        age:20,
        sex:"男"
    };
    var arr = JSON.stringify(obj);
    var json = JSON.parse(arr);
</script>
<body>

</body>
</html>